using net_work.Data.DTO.System;
using net_work.Data.Entity.System;

namespace net_work.IRepository.System;

public interface IFileRepository: IRepository<MyFile>
{
    /// <summary>
    /// 上传文件
    /// </summary>
    /// <param name="fileUseAddRequest">文件使用信息</param>
    /// <param name="myFileAddRequest">文件信息</param>
    /// <returns>文件ID</returns>
    Task<int> UploadFile(FileUseAddRequest fileUseAddRequest, MyFileAddRequest myFileAddRequest);

    /// <summary>
    /// 获取文件列表
    /// </summary>
    /// <param name="fileUseAddRequest">文件使用信息</param>
    /// <returns>文件列表</returns>
    Task<List<MyFile>> GetFileList(FileUseAddRequest fileUseAddRequest);
}